home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
TPUG - Toronto PET Users Group
/
TPUG Users Group CD
/
TPUG Users Group CD.iso
/
C64
/
A-Monthly Disks
/
(c)aa.d64
/
taxins
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2007-02-04
|
6KB
|
165 lines
1000 POKE45,PEEK(174)
1002 POKE46,PEEK(175)
1004 CLR:RESTORE
1010 PRINT"[147][144]":POKE53280,6:POKE53281,14
1020 A$="**** GLEN GODIER PRESENTS ****"
1030 A=LEN(A$):IFA/2<>INT(A/2)THENA$=" "+A$:GOTO1030
1040 FORI=1TOA/2
1050 PRINTTAB(21-I);LEFT$(A$,I);RIGHT$(A$,I)
1060 PRINT"[145]";
1070 FORZZ=1TO50:NEXTZZ
1080 NEXTI
1090 FORS=1TO3000:NEXTS:PRINT:PRINT:PRINT
1100 PRINT"":B$="T A X C A L C 85"
1110 FORI=LEN(B$)TO1STEP-1
1120 FORZZ=1TO26-LEN(B$)+I
1130 PRINTTAB(ZZ)" "MID$(B$,I,1);"[145]"
1140 NEXTZZ
1150 NEXTI
1160 FORY=1TO3000:NEXTY
1200 PRINT"[144]":C$="INSTRUCTIONS"
1210 C$=" "+C$
1220 FORI=1TOLEN(C$)
1230 PRINTMID$(C$,LEN(C$)-I+1,I);"[145]"
1240 FORZZ=1TO25:NEXTZZ:NEXTI
1250 FORT=1TO3000:NEXTT
1500 PRINT"[147]"
2000 PRINT"[147] INSTRUCTION MENU "
2010 PRINT" PLEASE MAKE A SELECTION"
2020 PRINT" A[146][144] BEGIN A NEW FILE"
2030 PRINT" B[146][144] LOAD FILE FROM DISK"
2040 PRINT" C[146][144] DELETE FILE FROM DISK"
2050 PRINT" D[146][144] SAVE THE FILE"
2060 PRINT" E[146][144] END PROGRAM"
2070 PRINT" F[146][144] RUN TAX RETURN"
2080 PRINT" G[146][144] CHANGE DATA IN SECTION"
2090 PRINT" H[146][144] CHANGE COLOURS"
2095 PRINT" I[146][144] LOAD TAXCALC85 PROGRAM"
2100 GETF$:IFF$=""THEN2100
2200 IFF$="A"THEN3000
2210 IFF$="B"THEN3200
2220 IFF$="C"THEN3400
2230 IFF$="D"THEN3600
2240 IFF$="E"THEN3800
2250 IFF$="F"THEN4000
2260 IFF$="G"THEN4200
2270 IFF$="H"THEN4400
2275 IFF$="I"THEN5000
2280 GOTO2100
3000 PRINT"[147] BEGIN A NEW FILE":PRINT
3010 PRINT" THIS OPTION IS USED WHENEVER YOU DO A"
3020 PRINT"TAX RETURN FOR THE FIRST TIME."
3030 PRINT" AFTER YOU TYPE 'F1', THE TAXCALC85"
3040 PRINT"PROGRAM WILL IMMEDIATELY GO INTO THE"
3050 PRINT"DATA ENTRY MODE. THE COMPUTER WILL ASK"
3060 PRINT"YOU SPECIFIC QUESTIONS ABOUT YOUR INCOME"
3070 PRINT"[145]AND DEDUCTIONS. IF YOU DO NOT HAVE A"
3080 PRINT"PARTICULAR ITEM (SUCH AS RENTAL INCOME,"
3090 PRINT"FOR EXAMPLE) THEN JUST TYPE IN A '0'"
3100 PRINT"AND PRESS 'RETURN'. THE PROGRAM WILL"
3110 PRINT"THEN GO ONTO THE NEXT QUESTION."
3120 PRINT"PRESS ANY KEY TO CONTINUE"
3130 GETA$:IFA$=""THEN3130
3140 GOTO2000
3200 PRINT"[147] LOAD FILE FROM DISK":PRINT
3210 PRINT" THIS OPTION ALLOWS YOU TO BRING A FILE"
3220 PRINT"[145]INTO THE COMPUTER FROM THE DISK."
3222 PRINT"THE COMPUTER WILL ASK YOU FOR THE NAME"
3224 PRINT"OF THE FILE YOU WANT LOADED. IF THERE"
3226 PRINT"ISN'T A FILE WITH THAT NAME ON THE DISK,"
3228 PRINT"[145]THE COMPUTER WILL DISPLAY A 'FILE NOT"
3230 PRINT"FOUND' ERROR MESSAGE. AT THIS POINT,"
3232 PRINT"YOU ARE BROUGHT BACK TO THE MAIN MENU."
3234 PRINT" ONCE THE FILE IS LOADED INTO THE"
3236 PRINT"COMPUTER, THE PROGRAM WILL AUTOMATICALLY"
3238 PRINT"[145]RECALCULATE THE TAX RETURN. YOU NOW"
3242 PRINT"CAN EITHER MAKE CHANGES TO THE DATA"
3244 PRINT"BY GOING BACK TO THE MENU AND PRESSING"
3245 PRINT"'F7' OR YOU CAN PRINT THE RETURN BY"
3246 PRINT"BY PRESSING 'P' AND THEN 'G' TO PRINT."
3250 PRINT"PRESS ANY KEY TO CONTINUE"
3260 GETA$:IFA$=""THEN3260
3270 GOTO2000
3400 PRINT"[147] DELETE FILE FROM DISK":PRINT
3402 PRINT" WITH THIS OPTION, THE COMPUTER WILL"
3404 PRINT"ERASE THE FILE YOU NAME ON THE DISK."
3406 PRINT"AS WITH THE LOAD OPTION, THE COMPUTER"
3408 PRINT"WILL ASK YOU FOR THE NAME OF THE FILE"
3410 PRINT"THAT YOU WANT DELETED. YOU MUST BE"
3412 PRINT"VERY CAREFUL WITH THIS OPTION. ONCE"
3414 PRINT"THE 'F3' IS ENTERED, THE COMPUTER"
3416 PRINT"WILL ASK YOU IF YOU ARE SURE YOU WANT"
3418 PRINT"THE FILE DELETED. IF YOU RESPOND"
3420 PRINT"WITH A 'Y', THE FILE ON THE"
3422 PRINT"DISK IS LOST FOREVER."
3424 PRINT" IF YOU WANT TO REPLACE A FILE ON THE"
3426 PRINT"DISK WITH ANOTHER FILE, YOU WILL HAVE"
3428 PRINT"TO DELETE THE FILE FIRST, THEN SAVE"
3430 PRINT"THE NEW FILE WITH THE SAME NAME."
3440 PRINT"PRESS ANY KEY TO CONTINUE"
3450 GETA$:IFA$=""THEN3450
3460 GOTO2000
3600 PRINT"[147] SAVE THE FILE ON DISK":PRINT
3602 PRINT" THIS OPTION WILL SAVE THE CURRENT"
3604 PRINT"FILE IN THE COMPUTER ON DISK. THE"
3606 PRINT"COMPUTER WILL ASK YOU FOR THE NAME"
3608 PRINT"OF THE FILE THAT YOU ARE SAVING."
3610 PRINT" ALWAYS BE SURE THAT YOU DO WANT TO"
3612 PRINT"SAVE THE CURRENT FILE - THAT IT IS"
3614 PRINT"CURRENT AND UP-TO-DATE BEFORE SAVING."
3616 PRINT"PRESS ANY KEY TO CONTINUE"
3618 GETA$:IFA$=""THEN3618
3620 GOTO2000
3800 PRINT"[147] END PROGRAM":PRINT
3802 PRINT" THIS OPTION ENDS THE PROGRAM."
3804 PRINT"ALL DATA THAT WAS IN THE COMPUTER WILL"
3806 PRINT"BE LOST, SO BE SURE TO SAVE THE FILE"
3808 PRINT"ON DISK IF YOU WANT TO KEEP IT."
3810 PRINT"PRESS ANY KEY TO CONTINUE"
3820 GETA$:IFA$=""THEN3820
3830 GOTO2000
4000 PRINT"[147] RUN THE TAX RETURN":PRINT
4002 PRINT" THIS IS THE 'CALCULATION' OPTION."
4004 PRINT"THIS OPTION TELLS THE COMPUTER TO TAKE"
4006 PRINT"ALL THE INFORMATION THAT IS CURRENTLY"
4008 PRINT"IN THE COMPUTER, AND PERFORM ALL THE"
4010 PRINT"NECESSARY CALCULATIONS TO ARRIVE AT"
4012 PRINT"TAXES PAYABLE OR REFUNDS DUE."
4014 PRINT" YOU SHOULD RUN THIS OPTION EACH TIME"
4020 PRINT"THAT YOU MAKE A CHANGE TO THE DATA"
4022 PRINT"(WITH THE 'F7' OPTION)."
4024 PRINT" AFTER THE CALCULATIONS ARE RUN, YOU"
4026 PRINT"WILL BE ASKED IF YOU WANT A PRINT-OUT"
4030 PRINT"OR TO GO BACK TO THE MAIN MENU."
4040 PRINT"PRESS ANY KEY TO CONTINUE"
4050 GETA$:IFA$=""THEN4050
4060 GOTO2000
4200 PRINT"[147] CHANGE DATA IN SECTION":PRINT
4202 PRINT" THIS IS THE REAL 'POWER' OF THE"
4204 PRINT"PROGRAM. THIS OPTION ALLOWS YOU TO"
4206 PRINT"GO BACK INTO CERTAIN SECTIONS OF THE"
4208 PRINT"RETURN AND MAKE CHANGES TO THE DATA."
4210 PRINT" YOU HAVE TO INPUT THE ENTIRE SECTION"
4212 PRINT"THAT YOU ARE CHANGING. WHEN YOU HAVE"
4214 PRINT"MADE THE CHANGES, YOU CAN GO BACK"
4216 PRINT"TO THE MAIN MENU AND EITHER RUN THE"
4218 PRINT"TAX RETURN ('F6'), OR SAVE THE NEW"
4220 PRINT"DATA ON DISK ('F4')."
4222 PRINT"PRESS ANY KEY TO CONTINUE"
4224 GETA$:IFA$=""THEN4224
4226 GOTO2000
4400 PRINT"[147] CHANGE COLOURS":PRINT
4402 PRINT" THIS OPTION ALLOWS YOU TO CHANGE"
4404 PRINT"THE BACKGROUND AND BORDER COLOURS TO"
4406 PRINT"SUIT YOUR INDIVIDUAL TASTE."
4408 PRINT" PRESS 'C' TO CHANGE THE COLOUR"
4410 PRINT"COMBINATIONS, AND PRESS 'M' WHEN YOU"
4412 PRINT"ARE HAPPY WITH YOUR SELECTION."
4414 PRINT"PRESS ANY KEY TO CONTINUE"
4416 GETA$:IFA$=""THEN4416
4418 GOTO2000
5000 PRINT"[147] LOADING TAXCALC85"
5010 PRINT" PLEASE WAIT ABOUT TWO MINUTES"
5020 LOAD"0:TAXCALC85",8
5030 RUN